<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
	<head>
		<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
		<link rel="stylesheet" type="text/css" href="/site_media/css/style.css" />
		<link rel="stylesheet" type="text/css" href="/site_media/css/shCore.css" />
		<link rel="stylesheet" type="text/css" href="/site_media/css/shTheme{{ theme }}.css" />
		<script type="text/javascript" src="/site_media/js/shCore.js"></script>
		{% block syntax %}{% endblock %}
		<script type="text/javascript">
			SyntaxHighlighter.config.clipboardSwf = '/site_media/js/clipboard.swf';
			SyntaxHighlighter.all();
		</script>
		<script type="text/javascript" src="/site_media/js/jquery-1.3.2.min.js"></script>
		<script type="text/javascript">
			$(document).ready(function(){
                if (!$.browser.mozilla) {
                    if ($.browser.version != '1.9.1') {
                        $('#page').prepend('<p id="browser">要达到最佳显示效果, 请使用火狐3.5浏览器. <a href="http://www.firefox.com/">Mozilla-Firefox</a></p>');
                    }
                }
				$('#theme_button').change(function(){
					$(this).parent().submit();	
				});
			});
		</script>
		<title>{% block title %}{% endblock %} - David Paste (大卫粘贴)</title>
		{% block jsscript %}{% endblock %}
	</head>
	<body>
		<div id="page">
			<div id="head">
				<p>
					{% if user.is_authenticated %}
						<span><a href="/manage/">{{ user.username }}</a></span>
						<span><a href="/logout/">登出</a></span>
					{% else %}
						<span><a href="/login/">您还没有登录</a></span>
						<span><a href="/register/">注册</a></span>
					{% endif %}
				</p>
				<h1><a href="/">DAVID-PASTE<span>0.2β</span></a></h1>
				<ul>
					<li id="paste_menu"><a href="/">贴代码</a></li>
					<li id="ranks_menu"><a href="/ranks/">排行榜</a></li>
				</ul>
			</div>
			<br class="clearfloat" />
			{% block content %}{% endblock %}
			<div id="foot">
				<p>Powered by <a href="http://www.djangoproject.com/" target="_blank">Django</a> | Created by <a href="http://davidshieh.cn/" target="_blank">David Shieh</a></p>
			</div>
		</div>
	</body>
</html>
